<?php

defined('_JEXEC') or die;

// import Joomla controllerform library
jimport('joomla.application.component.controllerform');

class ProductsControllerProduct extends JControllerForm	  
{
	public function featured($key = null, $urlVar = null){
		//推荐产品设置
		$model		= $this->getModel();
		$recommend		= JRequest::getVar('recommend');
		$id				= JRequest::getVar('id');
		$model->featured(array('id'=>$id,'is_commend'=>$recommend));
		$this->setRedirect('index.php?option=com_products&view=products');
		return true;
	}
}